<!-- HTML header for doxygen 1.8.18-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Cube for iOS: CDevice类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Cube for iOS
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('interface_c_device.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">构造函数</a> &#124;
<a href="#pub-static-methods">类方法</a> &#124;
<a href="#properties">属性</a> &#124;
<a href="interface_c_device-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CDevice类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>设备描述。  
 <a href="interface_c_device.html#details">更多...</a></p>

<p><code>#import &lt;<a class="el" href="_c_device_8h_source.html">CDevice.h</a>&gt;</code></p>
<div class="dynheader">
类 CDevice 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="interface_c_device.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
构造函数</h2></td></tr>
<tr class="memitem:aa640363dca999eff0f2da1a006ea4036"><td class="memItemLeft" align="right" valign="top">(instancetype)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_device.html#aa640363dca999eff0f2da1a006ea4036">init</a></td></tr>
<tr class="memdesc:aa640363dca999eff0f2da1a006ea4036"><td class="mdescLeft">&#160;</td><td class="mdescRight">使用当前设备信息初始化。  <a href="interface_c_device.html#aa640363dca999eff0f2da1a006ea4036">更多...</a><br /></td></tr>
<tr class="separator:aa640363dca999eff0f2da1a006ea4036"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad64ec04893bd2afb0c9d57de0916fc5b"><td class="memItemLeft" align="right" valign="top">(instancetype)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_device.html#ad64ec04893bd2afb0c9d57de0916fc5b">initWithName:platform:</a></td></tr>
<tr class="memdesc:ad64ec04893bd2afb0c9d57de0916fc5b"><td class="mdescLeft">&#160;</td><td class="mdescRight">使用指定设备信息初始化。  <a href="interface_c_device.html#ad64ec04893bd2afb0c9d57de0916fc5b">更多...</a><br /></td></tr>
<tr class="separator:ad64ec04893bd2afb0c9d57de0916fc5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f7b7ea4585037877792478ca93d45ae"><td class="memItemLeft" align="right" valign="top">(instancetype)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_device.html#a4f7b7ea4585037877792478ca93d45ae">initWithJSON:</a></td></tr>
<tr class="memdesc:a4f7b7ea4585037877792478ca93d45ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">从 JSON 数据格式创建设备对象实例。  <a href="interface_c_device.html#a4f7b7ea4585037877792478ca93d45ae">更多...</a><br /></td></tr>
<tr class="separator:a4f7b7ea4585037877792478ca93d45ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae973b1be81e66be4b219861069cadafd"><td class="memItemLeft" align="right" valign="top">(BOOL)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_device.html#ae973b1be81e66be4b219861069cadafd">isEqual:</a></td></tr>
<tr class="memdesc:ae973b1be81e66be4b219861069cadafd"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断数据是否相同。  <a href="interface_c_device.html#ae973b1be81e66be4b219861069cadafd">更多...</a><br /></td></tr>
<tr class="separator:ae973b1be81e66be4b219861069cadafd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
类方法</h2></td></tr>
<tr class="memitem:a702eb18e198997c90ca7102b49725ae6"><td class="memItemLeft" align="right" valign="top">(<a class="el" href="interface_c_device.html">CDevice</a> *)&#160;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="interface_c_device.html#a702eb18e198997c90ca7102b49725ae6">deviceWithJSON:</a></td></tr>
<tr class="memdesc:a702eb18e198997c90ca7102b49725ae6"><td class="mdescLeft">&#160;</td><td class="mdescRight">从 JSON 数据格式创建设备对象实例。  <a href="interface_c_device.html#a702eb18e198997c90ca7102b49725ae6">更多...</a><br /></td></tr>
<tr class="separator:a702eb18e198997c90ca7102b49725ae6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
属性</h2></td></tr>
<tr class="memitem:a9713208194e7b6602668d6f6c6f9c05b"><td class="memItemLeft" align="right" valign="top">NSString *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_device.html#a9713208194e7b6602668d6f6c6f9c05b">name</a></td></tr>
<tr class="separator:a9713208194e7b6602668d6f6c6f9c05b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a897a21b07c1a6c033e8e882214627e7f"><td class="memItemLeft" align="right" valign="top">NSString *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_device.html#a897a21b07c1a6c033e8e882214627e7f">platform</a></td></tr>
<tr class="separator:a897a21b07c1a6c033e8e882214627e7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>设备描述。 </p>
</div><h2 class="groupheader">函数文档</h2>
<a id="a702eb18e198997c90ca7102b49725ae6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a702eb18e198997c90ca7102b49725ae6">&#9670;&nbsp;</a></span>deviceWithJSON:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (<a class="el" href="interface_c_device.html">CDevice</a> *) deviceWithJSON: </td>
          <td></td>
          <td class="paramtype">(NSDictionary *)&#160;</td>
          <td class="paramname"><em>json</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>从 JSON 数据格式创建设备对象实例。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">json</td><td>指定设备的 JSON 数据。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回 <code><a class="el" href="interface_c_device.html" title="设备描述。">CDevice</a></code> 实例。 </dd></dl>

</div>
</div>
<a id="aa640363dca999eff0f2da1a006ea4036"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa640363dca999eff0f2da1a006ea4036">&#9670;&nbsp;</a></span>init</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (instancetype) init </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>使用当前设备信息初始化。 </p>

</div>
</div>
<a id="a4f7b7ea4585037877792478ca93d45ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f7b7ea4585037877792478ca93d45ae">&#9670;&nbsp;</a></span>initWithJSON:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (instancetype) initWithJSON: </td>
          <td></td>
          <td class="paramtype">(NSDictionary *)&#160;</td>
          <td class="paramname"><em>json</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>从 JSON 数据格式创建设备对象实例。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">json</td><td>指定设备的 JSON 数据。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad64ec04893bd2afb0c9d57de0916fc5b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad64ec04893bd2afb0c9d57de0916fc5b">&#9670;&nbsp;</a></span>initWithName:platform:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (instancetype) initWithName: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>name</em></td>
        </tr>
        <tr>
          <td class="paramkey">platform:</td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>platform</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>使用指定设备信息初始化。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>指定设备名称。 </td></tr>
    <tr><td class="paramname">platform</td><td>指定设备平台信息。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ae973b1be81e66be4b219861069cadafd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae973b1be81e66be4b219861069cadafd">&#9670;&nbsp;</a></span>isEqual:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (BOOL) isEqual: </td>
          <td></td>
          <td class="paramtype">(id)&#160;</td>
          <td class="paramname"><em>object</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断数据是否相同。 </p>
<dl class="section return"><dt>返回</dt><dd>如果数据相同返回 <code>TRUE</code> ，否则返回 <code>FALSE</code> 。 </dd></dl>

</div>
</div>
<h2 class="groupheader">属性说明</h2>
<a id="a9713208194e7b6602668d6f6c6f9c05b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9713208194e7b6602668d6f6c6f9c05b">&#9670;&nbsp;</a></span>name</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (NSString*) name</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设备名。 </p>

</div>
</div>
<a id="a897a21b07c1a6c033e8e882214627e7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a897a21b07c1a6c033e8e882214627e7f">&#9670;&nbsp;</a></span>platform</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (NSString*) platform</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设备平台描述。 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li><a class="el" href="_c_device_8h_source.html">CDevice.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.18-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="interface_c_device.html">CDevice</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
